package com.itbaizhan.service;

import com.itbaizhan.api.DeleteUserService;
import com.itbaizhan.mapper.UserMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class DeleteUserServiceImpl implements DeleteUserService {
    @Autowired
    private UserMapper userMapper;

    //根据用户id删除用户
    @Override
    public int deleteByUserId(Long userId) {
        return userMapper.deleteById(userId);
    }
}
